<jsp:include page="../../common/header.jsp" />
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
                    <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">                    
      <div id="content-header"> 
		  <h1>Students</h1>
		  <h3>Categories</h3>
		  <div id="app-back-button">							
		    <a onclick="history.back(); return false;" href="#"><button class="btn btn-primary btn-lg" type="button">Back</button></a>
		  </div>		  
		 <hr>
		</div>
		
	
		<div class="col-lg-5">
		          <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Student Category List 
                        <a style="float: right;" href="<%=request.getContextPath() %>/addStudentCategory.htm"><button class="btn btn-primary btn-xs" type="button">Add Category</button></a>
                        </h3>
                    </div>
                    <div class="panel-body">
                                <table class="table table-striped table-bordered table-hover">
                                    <tbody>
                                   <c:forEach var="category" items="${categoryList}">
                                        <tr>
                                            <td>${category.name}</td>
                                            <td>
                                            <a href="<%=request.getContextPath() %>/editStudentCategory.htm?id=${category.id}"><button class="btn btn-primary btn-xs" type="button">Edit</button></a>
                                            <a href="<%=request.getContextPath() %>/deleteStudentCategory.htm?id=${category.id}"><button class="btn btn-danger btn-xs" type="button">Delete</button></a>
                                            </td>
                                        </tr>
									   </c:forEach>
                                   </tbody>
                                </table>
                            </div> 
               </div>
			</div>               
                </div>
                
                <!-- /.col-lg-12 -->
            </div>
        </div>
        <!-- /#page-wrapper -->
<jsp:include page="../../common/footer.jsp" />



